#ifndef SQLPATIENTMODEL_H
#define SQLPATIENTMODEL_H

#include <QSqlQueryModel>

class SqlPatientModel : public QSqlQueryModel
{
    Q_OBJECT
public:
    enum ColumnType {
        PatientId,
        PatientName,
        PatientSex,
        PatientBirth,
        PatientAge,
        MedicalAlerts,
        PatientSize,
        PatientWeight,
        PatientAddr,
        PatientPhone,

        ColumnCount,
    };

    explicit SqlPatientModel(QObject *parent = 0);

    QVariant data(const QModelIndex &item, int role) const;
    QVariant headerData(int section, Qt::Orientation orientation, int role) const;


signals:

public slots:

};

#endif // SQLPATIENTMODEL_H
